package com.gxa.pingan.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Objects;

/**
 * @version fi
 * @Author lonny
 * @Date 2021/10/25 14:13
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@ApiModel("管理员实体类")
public class Manager implements Serializable {
    @ApiModelProperty(name = "email", value = "email", notes = "管理员编号")
    private Long id;
    @ApiModelProperty(name = "name", value = "name", notes = "管理员姓名", required = true)
    private String name;
    @ApiModelProperty(name = "passWord", value = "passWord", notes = "管理员密码", required = true)
    private String password;
    @ApiModelProperty(name = "phone", value = "phone", notes = "管理员电话", required = true)
    private String phone;
    @ApiModelProperty(name = "email", value = "email", notes = "管理员邮箱账户", required = true)
    private String email;
    @ApiModelProperty(name = "inUsed", value = "inUsed", notes = "是否启用管理员权限", required = true)
    private Boolean inUsed;
    @ApiModelProperty(name = "role", value = "role", notes = "管理员权限详情:1--banner管理,2--客户管理,3--订单管理,4--优惠券与积分,5--内容管理,6--保险管理," +
            "7--评价管理,8--退款,9--第三方管理,10--设置,11--只可以看见自己订单", required = true)
    private String role;

    @ApiModelProperty(name = "lastTime", value = "lastTime", notes = "上次登录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp lastTime;
}
